package com.nekonomics
package api.dto.response

import com.nekonomics.domain.auxiliary.{AuthResult, UserView}
import zio.json.*

case class UserAuthDto(user: UserView, token: String)  derives JsonCodec 

object UserAuthDto {
  def fromAuthRes(res: AuthResult) = UserAuthDto(user = res.user, token = res.token)


}
